/*
package com.lzy.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.lzy.oss.AliyunOSSService;
import com.lzy.properties.AliyunOSSProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * 阿里云OSS配置
 *//*

@Configuration
@EnableConfigurationProperties({AliyunOSSProperties.class})
@ConditionalOnProperty(name = "cn.lzy.sdk.oss.enabled")
public class AliyunOSSAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public AliyunOSSService getOSSClient(AliyunOSSProperties properties, OSS oss) {
        return new AliyunOSSService(properties, oss);
    }

    @Bean
    @ConditionalOnMissingBean
    public OSS getOSS(AliyunOSSProperties properties) {
        return new OSSClientBuilder().build(properties.getEndPoint(), properties.getAccessKeyId(), properties.getAccessKeySecret());
    }


}
*/
